Smush\Core\Png2Jpg\Png2Jpg_Controller S

Total Complexity 33
Dependencies 11
Dependents 1
Total lines 256
Lines of code 160
Logical lines of code 101
Comment lines 43
Methods 13
Properties 7

Methods 13

Method Rating Maintainability Complexity Lines of code
maybe_update_transparent_status()
A
50 8 29
get_fallback_jpg_path()
S
51 6 26
serve_fallback_png()
S
54 5 22
__construct()
S
49 2 34
get_instance()
S
71 2 6
maybe_flush_rewrite_rules()
S
67 2 8
maybe_mark_global_stats_as_outdated()
S
68 2 7
add_fallback_png_rewrite_rules()
S
64 1 9
add_png2jpg_optimization()
S
73 1 5
add_png2jpg_global_stats()
S
75 1 4
maybe_update_transparent_status_during_scan()
S
77 1 4
maybe_update_transparent_status_on_upload()
S
81 1 3
maybe_update_transparent_status_before_optimization()
S
81 1 3